import request from '@/utils/request'

export function getCustomerOrderByPage(query) {
  return request({
    url: '/mall/api/manager/order/customer-order',
    method: 'get',
    params: query
  })
}

export function downloadCustomerOrder(param) {
  return request({
    url: '/mall/api/manager/order/customer-order/download',
    method: 'post',
    data: param,
    responseType: 'blob',
    timeout: 30000
  })
}

export function downloadCustomerPaidOrder() {
  return request({
    url: '/mall/api/manager/order/customer-order/paid/download',
    method: 'post',
    responseType: 'blob',
    timeout: 30000
  })
}
